#!/bin/bash
set -e

DIRECTORIES="/srv/nfs/lliurex1109/zlx1109 /srv/nfs/lliurex1206/zlx1206 /srv/nfs/lliurex1109/zlxexperimental"


case $1 in
        start)
		for d in $DIRECTORIES; do
			cd $d 
			ERROR=$(./adminpool-inoticoming.sh |true)
			logger -t "adminpool" "$ERROR" 
		done

	;;

	*)
        	echo "Usage: /etc/init.d/adminpool-inoticoming {start}"
	        exit 1
        ;;
esac

